﻿@using DddCms.Models.UIComponent.Login;

@{ var loginInfo = new LoginInfoViewModel(); }

@if (User.Identity.IsAuthenticated)
{
    loginInfo
        .Add(Html.ActionLink(User.Identity.Name, "UpdateProfile", "User", new { area = "DddCms" }))
        .Add(Html.ActionLink("Logout", "Register", "User"));
}
else
{
    loginInfo
        .Add(Html.ActionLink("Login", "Login", "User"))
        .Add(Html.ActionLink("Register", "Register", "User"));
}

@LoginHelpers.Login(loginInfo)